import java.util.Arrays;

class MyBinaryIntegerTest
{
	public static void main(String[] args)
	{
		ConsoleReader cr = new ConsoleReader();
		
		System.out.print("count? ");
		int len = cr.readInt();
		Comparable[] arr = new Comparable[len];
		
		//data input
		for (int i=0; i<len; i++)
		{
			System.out.print(i+"? ");
			arr[i] = new MyBinaryInteger(cr.readInt());
		}
		
		//processing
		Arrays.sort(arr);
		
		//display
		System.out.println("results");
		for (int i=0; i<len; i++)
			System.out.println(i+") "+arr[i]);
	}
}
